<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 50px;
      border: 1px solid red;
      /*水平对齐方式*/
      text-align: right;
      text-align: center;
      /*文本修饰*/
      /*overline上划线/underline下划线/line-through删除线/none去掉修饰*/
      text-decoration: overline;
      text-decoration: underline;
      text-decoration: line-through;
      text-decoration: none;
      /*text-shadow:颜色 x偏移值 y偏移值 浓度(值越小越清晰)*/
      text-shadow: yellow 5px 5px 2px;
      /*设置行高,单行可以实现垂直居中, 多行可以控制行间距*/
      line-height: 50px;
      /*设置字体大小*/
      font-size: 30px;
      /*字体粗细*/
      font-weight: bold;
      /*设置斜体*/
      font-style: italic;
      /*设置字体*/
      font-family: cursive;
    }
    h1{
      /*去掉加粗*/
      font-weight: normal;
      /*设置字体大小和字体*/
      font: 20px cursive;
    }
  </style>
</head>
<body>
<h1>哈哈哈</h1>
<div>文本和字体</div>
</body>
</html>